<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>资源</title>
<link rel="stylesheet" type="text/css" href="../css/simple.css" charset="utf-8" />
<script src="../scripts/FormUtil.js" charset="utf-8"></script>
<script src="../scripts/validator.js" charset="utf-8"></script>
<script src="../scripts/util.js" charset="utf-8"></script>
<script src="Resource.js" charset="utf-8"></script>
</head>

<body>
<h3>资源</h3>
<div align="center">
	<form id="searchForm">
				<label for="type">资源类型</label>
		<select name="type">
		<option value="1">http</option>
		</select>
		<label for="keyword">关键字</label>
		<input id="keyword" name="keyword" />		&nbsp;&nbsp;<a onclick="searchKeyword()">搜索</a>
	</form>
</div>
<div style="margin-top:20px">
	<a id="ResourceAddBtn" class="fl">添加</a>
	<a id="ResourceDelBtn" class="fr">删除选中</a>
</div>
<table id="ResourceTable" border="1">
  <tr>
  <th><input type="checkbox" id="checkboxAll" /></th>
  
	<th>编号</th>
	<th>资源名称</th>
	<th>资源标示</th>
	<th>资源类型</th>
	<th>tag</th>


	<th>权限(功能)</th>

	<th>&nbsp;</th>
	<th>&nbsp;</th>
  </tr>


  <tr id="row_template">
	<td><input type="checkbox" name="checkbox" value="" /></td>
	<td>id</td>
	<td>name</td>
	<td>value</td>
	<td>type</td>
	<td>tag</td>

	<td><a class="setup">设置</a></td>

	<td><a class="edit">编辑</a></td>
	<td><a class="del">删除</a></td>
  </tr>

</table>

<br/>

<table border="1">
  <tr>
    <td id="page">

    </td>
  </tr>
</table>

<div id="ResourceEditPanel" style="display:none">
  <form id="ResourceEditForm" name="ResourceEditForm">
    <table border="1">
      <tr>
        <td class="tac">编号</td>
        <td><input type="hidden" name="id" value="$!resource.id" /></td>
        <td>&nbsp;</td>
      </tr>
	      <tr>
        <td class="tac">资源名称</td>
        <td><input type="text" name="name" value="" maxlength="255" /></td>
        <td>&nbsp;</td>
      </tr>
	      <tr>
        <td class="tac">资源标示</td>
        <td><input type="text" name="value" value="" maxlength="255" /></td>
        <td>&nbsp;</td>
      </tr>
	      <tr>
        <td class="tac">资源类型</td>
        <td><select name="type">
<option value="1">http</option>
</select></td>
        <td>&nbsp;</td>
      </tr>
	      <tr>
        <td class="tac">tag</td>
        <td><input type="text" name="tag" value="" maxlength="255" /></td>
        <td>&nbsp;</td>
      </tr>
	      <tr>
        <td class="tac">权限</td>
        <td><input type="text" name="authorities" value="" maxlength="255" /></td>
        <td>&nbsp;</td>
      </tr>
	      <tr>
        <td>&nbsp;</td>
        <td>
			<input id="ResourceSaveBtn" type="button" value="提交" />
			</td>
        <td>&nbsp;</td>
      </tr>
    </table>
  </form>
</div>

<div id="AuthoritySetupPanel" style="display:">
	<div>
		<form id="AuthoritySetupForm" name="AuthoritySetupForm">
			<input id="resourceId" type="hidden" value="" name="resourceId" />
		</form>
	</div>
	<div class="cb"></div>
	<div class="fr">
		<input id="authoritySetupSaveBtn" type="button" value="提交" />
	</div>
</div>

</body>
</html>
